package oop4.animal;

public class Parrot extends Pet {
    Parrot(String name, String strain, int weight, int age, char sex, int love, int health) {
        super(name,strain, weight, age, sex, love,health);
    }

    public void say() {
        System.out.println("鹦鹉" + super.getName() + "说Hello");
    }

    public void fly() {
        System.out.println("鹦鹉" + super.getName() + "在飞行");
    }

    @Override
    public void eat() {
        System.out.println("鹦鹉"+this.getName()+"吃鸟粮");
    }

    @Override
    public String toString() {
        return "鹦鹉"+getName();
    }
}
